package com.cx.service;

import com.cx.pojo.GroupSponsor;
import com.cx.vo.GroupListVO;
import com.cx.vo.MyGroupInfoVO;

import java.util.List;

public interface GroupSponsorService {

    int insertGroup(GroupSponsor groupSponsor);

    List<GroupListVO> selectGroupByGroupGoodId(Integer groupGoodId);

    Integer updateJoinNum(Integer id);

    Integer checkAndUpdateStatus();

    Integer failAndUpdateStatus(Integer groupSponsorId);

    Integer successAndUpdateStatus(Integer groupSponsorId);

    List<MyGroupInfoVO> selectMyGroupInfo(Integer userId,Integer status);
}
